﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace F2S.LINQ2LinkedIn.Model
{
    [XmlRoot("share")]
    public class Share : UpdateItem
    {
        [XmlElement("id")]
        public string ID { get; set; }

        [XmlElement("timestamp")]
        public long Timestamp { get; set; }

        [XmlElement("visibility")]
        public Visibility Visibility { get; set; }

        [XmlElement("comment")]
        public string Comment { get; set; }
        
        [XmlElement("content")]
        public Content Content { get; set; }

        [XmlElement("source")]
        public Source Source { get; set; }

        [XmlElement("author")]
        public Author Author { get; set; }
    }

    /*
        <share>
          <id>s5790167910924173321</id>
          <timestamp>1380483588507</timestamp>
          <visibility>
            <code>anyone</code>
          </visibility>
          <comment>Time for a career move? Take the first step: Join Connect Professional Women’s Network. http://on.citi.us/11XLAoc</comment>
          <content>
            <submitted-url>http://www.linkedin.com/groups/Connect-Professional-Womens-Network-Powered-4409416?home=&amp;gid=4409416&amp;trk=anet_ug_hm&amp;goback=.gmp_4409416</submitted-url>
            <shortened-url>http://on.citi.us/11XLAoc</shortened-url>
            <title>Join Connect: Professional Women's Network, Powered by Citi</title>
            <description>Get the support you need to accelerate your career.</description>
            <submitted-image-url>https://s3.amazonaws.com/spr-uploads-prod/1508/6470/post-images/LIConnect_Women4-1380483559451-img.jpg</submitted-image-url>
            <thumbnail-url>https://media.licdn.com/media-proxy/ext?w=80&amp;h=100&amp;hash=yeaeiGfriM2bSY%2Fq%2BATnIWZpcZI%3D&amp;url=https%3A%2F%2Fs3.amazonaws.com%2Fspr-uploads-prod%2F1508%2F6470%2Fpost-images%2FLIConnect_Women4-1380483559451-img.jpg</thumbnail-url>
            <eyebrow-url>http://www.linkedin.com/share?viewLink=&amp;sid=s5790167910924173321&amp;url=http%3A%2F%2Fon%2Eciti%2Eus%2F11XLAoc&amp;urlhash=c5WM&amp;uid=5790167837205086208</eyebrow-url>
          </content>
          <source>
            <service-provider>
              <name>LINKEDIN</name>
            </service-provider>
            <application>
              <name>Sprinklr</name>
            </application>
          </source>
        </share>
     * */
}
